

package com.kimo.shop.user.comment.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.param.UserUpdateParam;
import com.kimo.shop.common.util.PageParam;
import com.kimo.shop.user.comment.model.UserBalance;
import com.kimo.shop.user.comment.model.UserBalanceLog;

import java.util.List;

/**
 * 余额充值级别表
 *
 * @author kimo-taozhouchuan
 * @date 2020-09-08 10:42:39
 */
public interface UserBalanceService extends IService<UserBalance> {

    void saveBalance(UserBalance userBalance);

    void updateBalanceById(UserBalance userBalance);

    UserBalance getBalanceInfo(Long balanceId);

    void removeCacheByBalanceId(Long balanceId);

    List<UserBalance> getBalanceList();

    void paySuccess(String payNo);

    Boolean batchUpdateUserBalance(UserUpdateParam param);

    IPage<UserBalanceLog> getPageByUserId(PageParam<UserBalanceLog> page, String userId);
}
